{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"actions\", \"anchorEl\", \"children\", \"component\", \"keepMounted\", \"listboxId\", \"onClose\", \"open\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport MenuUnstyledContext from './MenuUnstyledContext';\nimport { getMenuUnstyledUtilityClass } from './menuUnstyledClasses';\nimport useMenu from './useMenu';\nimport composeClasses from '../composeClasses';\nimport PopperUnstyled from '../PopperUnstyled';\nimport useSlotProps from '../utils/useSlotProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getUtilityClasses(ownerState) {\n  const {\n    open\n  } = ownerState;\n  const slots = {\n    root: ['root', open && 'expanded'],\n    listbox: ['listbox', open && 'expanded']\n  };\n  return composeClasses(slots, getMenuUnstyledUtilityClass, {});\n}\n/**\n *\n * Demos:\n *\n * - [Unstyled Menu](https://mui.com/base/react-menu/)\n *\n * API:\n *\n * - [MenuUnstyled API](https://mui.com/base/api/menu-unstyled/)\n */\nconst MenuUnstyled = /*#__PURE__*/React.forwardRef(function MenuUnstyled(props, forwardedRef) {\n  var _ref, _slots$listbox;\n  const {\n      actions,\n      anchorEl,\n      children,\n      component,\n      keepMounted = false,\n      listboxId,\n      onClose,\n      open = false,\n      slotProps = {},\n      slots = {}\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const {\n    registerItem,\n    unregisterItem,\n    getListboxProps,\n    getItemProps,\n    getItemState,\n    highlightFirstItem,\n    highlightLastItem\n  } = useMenu({\n    open,\n    onClose,\n    listboxId\n  });\n  React.useImperativeHandle(actions, () => ({\n    highlightFirstItem,\n    highlightLastItem\n  }), [highlightFirstItem, highlightLastItem]);\n  const ownerState = _extends({}, props, {\n    open\n  });\n  const classes = getUtilityClasses(ownerState);\n  const Root = (_ref = component != null ? component : slots.root) != null ? _ref : PopperUnstyled;\n  const rootProps = useSlotProps({\n    elementType: Root,\n    externalForwardedProps: other,\n    externalSlotProps: slotProps.root,\n    additionalProps: {\n      anchorEl,\n      open,\n      keepMounted,\n      role: undefined,\n      ref: forwardedRef\n    },\n    className: classes.root,\n    ownerState\n  });\n  const Listbox = (_slots$listbox = slots.listbox) != null ? _slots$listbox : 'ul';\n  const listboxProps = useSlotProps({\n    elementType: Listbox,\n    getSlotProps: getListboxProps,\n    externalSlotProps: slotProps.listbox,\n    ownerState,\n    className: classes.listbox\n  });\n  const contextValue = React.useMemo(() => ({\n    registerItem,\n    unregisterItem,\n    getItemState,\n    getItemProps,\n    open\n  }), [getItemProps, getItemState, open, registerItem, unregisterItem]);\n  return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n    children: /*#__PURE__*/_jsx(Listbox, _extends({}, listboxProps, {\n      children: /*#__PURE__*/_jsx(MenuUnstyledContext.Provider, {\n        value: contextValue,\n        children: children\n      })\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuUnstyled.propTypes /* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit TypeScript types and run \"yarn proptypes\"  |\n  // ----------------------------------------------------------------------\n  /**\n   * A ref with imperative actions.\n   * It allows to select the first or last menu item.\n   */\n  actions: refType,\n  /**\n   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   */\n  anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Always keep the menu in the DOM.\n   * This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Menu.\n   *\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  listboxId: PropTypes.string,\n  /**\n   * Triggered when focus leaves the menu and the menu should close.\n   */\n  onClose: PropTypes.func,\n  /**\n   * Controls whether the menu is displayed.\n   * @default false\n   */\n  open: PropTypes.bool,\n  /**\n   * The props used for each slot inside the Menu.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Menu.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    listbox: PropTypes.elementType,\n    root: PropTypes.elementType\n  })\n} : void 0;\nexport default MenuUnstyled;","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","PropTypes","HTMLElementType","refType","MenuUnstyledContext","getMenuUnstyledUtilityClass","useMenu","composeClasses","PopperUnstyled","useSlotProps","jsx","_jsx","getUtilityClasses","ownerState","open","slots","root","listbox","MenuUnstyled","forwardRef","props","forwardedRef","_ref","_slots$listbox","actions","anchorEl","children","component","keepMounted","listboxId","onClose","slotProps","other","registerItem","unregisterItem","getListboxProps","getItemProps","getItemState","highlightFirstItem","highlightLastItem","useImperativeHandle","classes","Root","rootProps","elementType","externalForwardedProps","externalSlotProps","additionalProps","role","undefined","ref","className","Listbox","listboxProps","getSlotProps","contextValue","useMemo","Provider","value","process","env","NODE_ENV","propTypes","oneOfType","object","func","node","bool","string","shape"],"sources":["/data/messenger.client/node_modules/@mui/lab/node_modules/@mui/base/MenuUnstyled/MenuUnstyled.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"actions\", \"anchorEl\", \"children\", \"component\", \"keepMounted\", \"listboxId\", \"onClose\", \"open\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport MenuUnstyledContext from './MenuUnstyledContext';\nimport { getMenuUnstyledUtilityClass } from './menuUnstyledClasses';\nimport useMenu from './useMenu';\nimport composeClasses from '../composeClasses';\nimport PopperUnstyled from '../PopperUnstyled';\nimport useSlotProps from '../utils/useSlotProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getUtilityClasses(ownerState) {\n  const {\n    open\n  } = ownerState;\n  const slots = {\n    root: ['root', open && 'expanded'],\n    listbox: ['listbox', open && 'expanded']\n  };\n  return composeClasses(slots, getMenuUnstyledUtilityClass, {});\n}\n/**\n *\n * Demos:\n *\n * - [Unstyled Menu](https://mui.com/base/react-menu/)\n *\n * API:\n *\n * - [MenuUnstyled API](https://mui.com/base/api/menu-unstyled/)\n */\nconst MenuUnstyled = /*#__PURE__*/React.forwardRef(function MenuUnstyled(props, forwardedRef) {\n  var _ref, _slots$listbox;\n  const {\n      actions,\n      anchorEl,\n      children,\n      component,\n      keepMounted = false,\n      listboxId,\n      onClose,\n      open = false,\n      slotProps = {},\n      slots = {}\n    } = props,\n    other = _objectWithoutPropertiesLoose(props, _excluded);\n  const {\n    registerItem,\n    unregisterItem,\n    getListboxProps,\n    getItemProps,\n    getItemState,\n    highlightFirstItem,\n    highlightLastItem\n  } = useMenu({\n    open,\n    onClose,\n    listboxId\n  });\n  React.useImperativeHandle(actions, () => ({\n    highlightFirstItem,\n    highlightLastItem\n  }), [highlightFirstItem, highlightLastItem]);\n  const ownerState = _extends({}, props, {\n    open\n  });\n  const classes = getUtilityClasses(ownerState);\n  const Root = (_ref = component != null ? component : slots.root) != null ? _ref : PopperUnstyled;\n  const rootProps = useSlotProps({\n    elementType: Root,\n    externalForwardedProps: other,\n    externalSlotProps: slotProps.root,\n    additionalProps: {\n      anchorEl,\n      open,\n      keepMounted,\n      role: undefined,\n      ref: forwardedRef\n    },\n    className: classes.root,\n    ownerState\n  });\n  const Listbox = (_slots$listbox = slots.listbox) != null ? _slots$listbox : 'ul';\n  const listboxProps = useSlotProps({\n    elementType: Listbox,\n    getSlotProps: getListboxProps,\n    externalSlotProps: slotProps.listbox,\n    ownerState,\n    className: classes.listbox\n  });\n  const contextValue = React.useMemo(() => ({\n    registerItem,\n    unregisterItem,\n    getItemState,\n    getItemProps,\n    open\n  }), [getItemProps, getItemState, open, registerItem, unregisterItem]);\n  return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n    children: /*#__PURE__*/_jsx(Listbox, _extends({}, listboxProps, {\n      children: /*#__PURE__*/_jsx(MenuUnstyledContext.Provider, {\n        value: contextValue,\n        children: children\n      })\n    }))\n  }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MenuUnstyled.propTypes /* remove-proptypes */ = {\n  // ----------------------------- Warning --------------------------------\n  // | These PropTypes are generated from the TypeScript type definitions |\n  // |     To update them edit TypeScript types and run \"yarn proptypes\"  |\n  // ----------------------------------------------------------------------\n  /**\n   * A ref with imperative actions.\n   * It allows to select the first or last menu item.\n   */\n  actions: refType,\n  /**\n   * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n   * or a function that returns either.\n   * It's used to set the position of the popper.\n   */\n  anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n  /**\n   * @ignore\n   */\n  children: PropTypes.node,\n  /**\n   * The component used for the root node.\n   * Either a string to use a HTML element or a component.\n   */\n  component: PropTypes.elementType,\n  /**\n   * Always keep the menu in the DOM.\n   * This prop can be useful in SEO situation or when you want to maximize the responsiveness of the Menu.\n   *\n   * @default false\n   */\n  keepMounted: PropTypes.bool,\n  /**\n   * @ignore\n   */\n  listboxId: PropTypes.string,\n  /**\n   * Triggered when focus leaves the menu and the menu should close.\n   */\n  onClose: PropTypes.func,\n  /**\n   * Controls whether the menu is displayed.\n   * @default false\n   */\n  open: PropTypes.bool,\n  /**\n   * The props used for each slot inside the Menu.\n   * @default {}\n   */\n  slotProps: PropTypes.shape({\n    listbox: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n    root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n  }),\n  /**\n   * The components used for each slot inside the Menu.\n   * Either a string to use a HTML element or a component.\n   * @default {}\n   */\n  slots: PropTypes.shape({\n    listbox: PropTypes.elementType,\n    root: PropTypes.elementType\n  })\n} : void 0;\nexport default MenuUnstyled;"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG,MAAMC,SAAS,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC;AACvI,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,eAAe,EAAEC,OAAO,QAAQ,YAAY;AACrD,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,OAAOC,OAAO,MAAM,WAAW;AAC/B,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,OAAOC,cAAc,MAAM,mBAAmB;AAC9C,OAAOC,YAAY,MAAM,uBAAuB;AAChD,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAC/C,SAASC,iBAAiB,CAACC,UAAU,EAAE;EACrC,MAAM;IACJC;EACF,CAAC,GAAGD,UAAU;EACd,MAAME,KAAK,GAAG;IACZC,IAAI,EAAE,CAAC,MAAM,EAAEF,IAAI,IAAI,UAAU,CAAC;IAClCG,OAAO,EAAE,CAAC,SAAS,EAAEH,IAAI,IAAI,UAAU;EACzC,CAAC;EACD,OAAOP,cAAc,CAACQ,KAAK,EAAEV,2BAA2B,EAAE,CAAC,CAAC,CAAC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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